home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 2).iso / 0730 / animat.doc next >
Text File  |  1997-04-09  |  9KB  |  170 lines

  1. ANIMAT.EXE (VERSION 1.0)                Copyright (c) 1993 ??????????????
  2. -------------------------------------------------------------------------
  3.                    First Published in PC Magazine June 15,1993 (Utilities)
  4. -------------------------------------------------------------------------
  5.  
  6. ANIMAT.EXE:
  7.            ICON ANIMATOR is a Windows 3.1 utility that gives you the
  8. ability to bring an icon to life when you minimize a running application,
  9. by displaying a timed sequence of icon frames in place of the usual static
  10. icon.  Up to 16 animation sequences can be used at once, each associated
  11. with a different application.  The frame rate (the amount of time between
  12. frames) for each sequence is user-selectable, and different animated icons
  13. can run at different speeds.
  14.  
  15.      Not only do icons add fun to your Windows environment, they also
  16. make minimized programs easier to recognize. With programs like IconDraw,
  17. Borland's Resource Workshop, Norton's icon editor, or with our own IKE
  18. utility (PC Magazine, March 26, 1991), you can customize your icons, but
  19. we decided to go a step further. Until now, icons have remained static
  20. and inert.  Wouldn't it be nice to see the pencil scribble back and forth
  21. when you minimize NOTEPAD?
  22.  
  23.      To recompile the program after making changes of your own, you'll
  24. need either the Borland C++ 3.1 compiler or the Microsoft C 6.0 compiler
  25. and the Windows SDK.
  26.  
  27.      Before you can put ICON ANIMATOR to work, of course, you must create
  28. the individual images (the frames) that will comprise the animation
  29. sequence.  For this you'll need a separate icon editor. In addition to
  30. the editors mentioned at the outset, any number of public domain icon
  31. editors are available for downloading from various bulletin boards.
  32.  
  33.     In selecting a suitable icon editor, look for two things:  the
  34. ability to draw an icon transparently, that is, without a background
  35. of its own; and the ability to save the drawn image under a filename,
  36. move the entire image a few pixels and save it under a new filename,
  37. move it and save it again, and so on.  This will eliminate the need to
  38. redraw the entire icon for each frame of the animation sequence.
  39.  
  40.      For example for a bouncing ball sequence, you might begin your
  41. frame sequence by creating an image with the ball at the top of the
  42. editing area.  Save this first frame as BALL1.ICO.  The next frame,
  43. to be saved as BALL2.ICO, will use the same image, but this time it
  44. will be drawn two pixels lower, and so on, until the ball reaches the
  45. bottom of the editing area.  (Typically, the editing area is 32 by 32
  46. pixels overall.)  If the ball is only to bounce up and down, you can
  47. then re-use your previously drawn icons in reverse order to show the
  48. ball traveling back up to the top of the frame.
  49.  
  50.      Including a numeral as part of each .ICO filename will help you
  51. keep their order straight when you are ready to put them into an
  52. animation sequence (an .ANM script file) for ICON ANIMATOR to run.
  53. To get you started, I've included the .ICO and .ANM files for the
  54. bouncing ball as part of the ZIPped archive you can download from
  55. PC MagNet.
  56.  
  57. USING ICON ANIMATOR
  58.  
  59.      After downloading ANIMATOR.EXE, copy it to the drive and directory
  60. from which you want to access it under Windows.  There are several ways
  61. to run the program.  As with most Windows applications, you can run it
  62. using the File  Run menu selections.  If you don't want ICON ANIMATOR
  63. to start up automatically, you can put it in any group you wish.  Since
  64. you'll probably want some of your regular programs to use animated icons
  65. automatically, however, you'll normally install ANIMATOR in your Startup
  66. Group.
  67.  
  68.      To do this, simply highlight the Startup Group in Program Manager,
  69. select the File  New menu command, choose Program Item, and click OK.
  70. Fill in an icon title (in this case, Animator would be the obvious
  71. choice) in the Description edit box, and enter the complete path and
  72. executable filename on the Command Line. As your working directory,
  73. specify the directory in which you keep ANIMATOR's frame (.ICO) and
  74. script (.ANM) files. Finally, you'll want to check the Run Minimized
  75. box so that ANIMATOR won't come up atop your Program Manager each time
  76. you start Windows.
  77.  
  78.      Once you have installed the utility and produced a series of images
  79. with your icon editor, you're ready to use ANIMATOR to create a script
  80. (.ANM) file.  When you run ANIMATOR and choose File  New, an <Untitled>
  81. window will appear.  Select Animate and choose Append Icon To End Of
  82. List.  ICON ANIMATOR will now display a File Selection dialog box that
  83. contains your working directory.  Double-click on the .ICO file that
  84. contains the image that you want to place first in your animation
  85. sequence (BALL1.ICO, for example).  ICON ANIMATOR will display this
  86. file--complete with image and full pathname--in the window in which your
  87. script file is being created.
  88.  
  89.      If you should decide to add a second image to your animation
  90. sequence (BALL2.ICO, for instance), simply repeat the process:
  91. Choose Animate, then select Append Icon To End Of List, double-click
  92. on the correct .ICO file, and ANIMATOR will display it in the <Untitled>
  93. window as the second item.
  94.  
  95.      Either during or after creation of an .ANM script, you may find
  96. it necessary to make editing changes.  If you need to edit a script you
  97. have already created, simply select File  Open.  ICON ANIMATOR will
  98. present a list of all the .ANM files in your working directory.
  99. Double-click on the script you want to edit and ANIMATOR will display
  100. it in the window.  Obviously, if you're in the process of creating a
  101. script, it will be displayed already.
  102.  
  103.      Suppose, for example, that after correctly making BALL1.ICO the
  104. first frame in your sequence, you accidentally skip BALL2.ICO and make
  105. BALL3.ICO the second frame in the sequence.  If you double-click on
  106. BALL3.ICO to highlight it, and you then select Insert Icon into List
  107. from the Animate menu choices, you'll be able to repair your omission.
  108. To remove an icon frame file from the list, simply highlight it and
  109. select Delete Icon from List from the Animate menu.
  110.  
  111.      ICON ANIMATOR also supports the File Manager's drag-and-drop
  112. protocol as an alternate way to insert or append icons.  To insert an
  113. icon or a list of icons into a specific position, select the file(s)
  114. from File Manager (either with the mouse or by choosing File  Select
  115. Files), and drag the file atop the desired position in the icon script
  116. list.  Dragging past the end of the list and releasing the left mouse
  117. button appends the file to the end of the list.
  118.  
  119.      After your list of frame filenames is complete, you have but two
  120. remaining tasks.  First, you must specify the frame rate; that is, the
  121. time interval to be inserted between frames.  Second, you must associate
  122. the animation sequence with an application.  You execute both these
  123. configuration options by selecting Settings from the Animate menu.
  124. The default time interval between frames is 100 milliseconds, but you
  125. can choose any value between 20 and 20,000 ms.
  126.  
  127.      There are two ways to associate or link an animation sequence to
  128. an application.  If the application is already running, press the Link
  129. to Running Task button; otherwise, press Link to an Executable File.
  130. Your choice will be displayed to the right of the words Linked to File.
  131. To avoid losing the linkage when ANIMATOR is closed, you should also
  132. check the Automatically Animate check box.
  133.  
  134.      After you have linked an animation sequence to an application, you
  135. can see it work by selecting Go! from the Animate menu and then minimizing
  136. the application.  At this point, however, your script has not yet been
  137. saved, so don't choose File  Close.  Rather, select the File  Save (or
  138. File  Save As if you want a new filename for your script) to record what
  139. you have done.
  140.  
  141.      The Stop and Go! choices on the Animate menu form a toggle whose
  142. status is reflected by the status bar at the bottom of the main ANIMATOR
  143. window.  ICON ANIMATOR also has a Window drop-down menu that contains
  144. the standard Cascade, Tile, Arrange Icons, and Close All selections.
  145. It also shows the command line for all open ANIMATOR windows. Selecting
  146. a script window title in the menu activates that specific script.
  147.  
  148.      Once you have prepared the animation scripts, add the ones you
  149. want to use regularly to the ANIMATOR Command Line as parameters. To do
  150. this, simply highlight ANIMATOR in your Startup Group, select File
  151. Properties from the Program Manager menu, and add the animation script
  152. filenames to the Command Line. For example, if you keep ICON ANIMATOR
  153. and its related files in the PCMUTILS subdirectory of your Windows
  154. directory on drive C:, enter
  155.  
  156.              C:\WINDOWS\PCMUTILS\ANIMATOR.EXE BALL.ANM
  157.  
  158. on the Command Line.  To load more than one script, just enter it thus:
  159.  
  160.              C:\WINDOWS\PCMUTILS\ANIMATOR.EXE BALL.ANM BELL.ANM
  161.  
  162.  
  163.      Note: In order for any program you run to  have its icon replaced
  164. with its animating icon automatically, you must put the script file on
  165. the command line as a parameter.
  166. -------------------------------------------------------------------------
  167. PHILIP B. ESKELIN, JR., IS A SOFTWARE ENGINEER AT TURNING POINT SOFTWARE.
  168. -------------------------------------------------------------------------
  169.  
  170.